import Vue from 'vue'
import MyRouter from './my-router'
import HelloWorld from '@/components/HelloWorld'

Vue.use(MyRouter)

const routes = [
  {
    path: '/',
    name: 'Hello',
    component: HelloWorld
  },
  {
    path: '/about',
    name: 'About',
    component: () => import(/* webpackChunkName: 'about' */ '@/components/About')
  }
]

const router = new MyRouter({
  mode: 'hash',
  routes
})

export default router
